package com.example.demo.controller;

import com.example.demo.service.sv.zhuangbai;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/zhuangbai")
public class zhuangbaiController {
    @Autowired
    zhuangbai zhuangbai;
    @RequestMapping("/touxiang")
    @ResponseBody
    public void gaitoxuiang(@RequestParam("zhang") String zhang,@RequestParam("touxiang") String touxiang)
    {
             zhuangbai.gaitouxiang(zhang,touxiang);
    }
    @RequestMapping("/qipao")
    @ResponseBody
    public void gaiqipao(@RequestParam("zhang") String zhang,@RequestParam("qipao") String qipao)
    {
        zhuangbai.gaiqipao(zhang,qipao);
    }
    @RequestMapping("/jishiqi")
    @ResponseBody
    public void gaijishiqi(@RequestParam("zhang") String zhang,@RequestParam("jishiqi") String jishiqi)
    {
        zhuangbai.gaijishiqi(zhang,jishiqi);
    }
    @RequestMapping("/touxiangkuang")
    @ResponseBody
    public void gaitoxuiangkuang(@RequestParam("zhang") String zhang,@RequestParam("touxiangkuang") String touxiangkuang)
    {
        zhuangbai.gaitouxiangkuang(zhang,touxiangkuang);
    }
    @RequestMapping("/paizhuo")
    @ResponseBody
    public void gaipaizhuo(@RequestParam("zhang") String zhang,@RequestParam("paizhuo") String paizhuo)
    {
        zhuangbai.gaipaizhuo(zhang,paizhuo);
    }
}
